import 'package:flutter/material.dart';
import './app.dart';
import 'loading.dart';
import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';
import './search.dart';
import '/SettingDetail.dart';
import './chat/WebViewPage.dart';

void main() => runApp(MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'wechat',
      theme: mDefaultTheme,
      routes: <String, WidgetBuilder>{
        "app": (BuildContext context) => new App(),
        "/friends": (BuildContext context) =>
            WebViewPage(url: "https://sports.sina.com.cn"), // 使用WebViewPage
        'search': (BuildContext context) => new Search(),
        'settingDetail': (BuildContext context) => new SettingDetail(),
      },
      home: new LoadingPage(),
    ));

final ThemeData mDefaultTheme = new ThemeData(
  primaryColor: Color(0xff303030),
  scaffoldBackgroundColor: Color(0xFFebebeb),
  cardColor: Color(0xff393a3f),
);
